<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width= , initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script src="./ajax.js"></script>
  <!-- <script>
    $.ajax({
      url: 'www.baidu.com',
      method: 'get',
      data: {
        name: '123',
        age: 18
      },
      success(res) {
        console.log('成功', res)
      },
      error(err) {
        console.log('失败', err)
      },
      complete() {
        console.log('完成')
      }
    })
  </script> -->
</body>

</html>
